//
//  WBCommon.swift
//  WeiboTen
//
//  Created by ItHeiMa on 2017/7/7.
//  Copyright © 2017年 itHeima. All rights reserved.
//
import UIKit

let appKey = "947981000"
let appSecret = "e37c1e1a138ad408c2465a22e36be652"
let redirectURI = "http://www.baidu.com"
let loginUserName = "dxusdcom@163.com"
let loginUserPassword = "511511"

let globalColor = UIColor.orange

let screenWidth = UIScreen.main.bounds.width
let screenHeight = UIScreen.main.bounds.height
let screenScale = UIScreen.main.scale

/// 登录成功的通知名
let loginSuccessNotificationName = Notification.Name(rawValue: "successNotification")
/// 点击首页的图片的通知名
let clickStatusImageNotification = Notification.Name(rawValue: "clickStatusImageNotification")
/// 点击表情键盘通知
let emotionButtonClickNotification = Notification.Name(rawValue: "emotionButtonClickNotification")

/// 首页的常用数据的封装
struct HomeViewS {
    //间隔
    var gap: CGFloat = 10
    
    //小图标的size
    var lsize: CGSize = CGSize(width: 15, height: 15)
    
    //大图标的size
    var iconSize: CGSize = CGSize(width: 35, height: 35)
    
    init() {
        imageH = (screenWidth - 4 * gap)/3
        imageS = CGSize(width: imageH, height: imageH)
    }
    
    //配图高度
    var imageH: CGFloat = 0
    
    //配图的大小
    var imageS: CGSize = CGSize.zero
}

//首页的常量的结构体对象
let homeVS = HomeViewS()


